package net.wicp.tams.commons.binlog;

import java.io.IOException;

import net.wicp.tams.commons.Result;
import net.wicp.tams.commons.binlog.bean.EventBean;

public interface IBinlogRead {
	public static final byte[] BINLOG_MAGIC = new byte[] { (byte) 0xfe, (byte) 0x62, (byte) 0x69, (byte) 0x6e };// 魔数

	public static final int HEAD_LENGTH = 19;
	
	public static final String BIN_ROW="[%s:0x%s]";

	public Result checkHead();

	public EventBean readEvent() throws IOException;

	public void read(long pos) throws IOException;

}
